#ifndef VIEW_COMPONENT_CPANELDEVICELIST_H_
#define VIEW_COMPONENT_CPANELDEVICELIST_H_

#include "CPanelWidget.h"
#include "core/defines.h"

class QListView;
class QModelIndex;
class QStandardItemModel;

class CPanelDeviceList : public CPanelWidget
{
    Q_OBJECT
public:
    CPanelDeviceList(QWidget* parent = nullptr);
    ~CPanelDeviceList();

    void setDeviceConfig(const ZLDeviceConfig& config);

protected slots:
    void event_tree_item_clicked(const QModelIndex& index);

signals:
    void deviceChanged(QString id);

private:
    class CPanelDeviceListPrivate;
    CPanelDeviceListPrivate* p_;
};

#endif  // VIEW_COMPONENT_CPANELDEVICELIST_H_